CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

include_directories(${COMN_DIR}/include)
include_directories(${PROJECT_ROOT}/MediaDecoder)
include_directories(${FFMPEG_INCLUDE_DIR})

if (MSVC)
include_directories(${THIRD_PARTY}/stdint)
endif()


link_directories(${PROJECT_ROOT}/lib)
link_directories(${COMN_DIR}/lib)
link_directories(${FFMPEG_LIBRARY_DIR})
link_directories(${THIRD_PARTY}/SDL2/lib/x86)
link_directories(${THIRD_PARTY}/SDL2/lib)

include_directories(${PROJECT_ROOT}/LitePlayer/include)
include_directories(${PROJECT_ROOT}/LitePlayer/core)



aux_source_directory(. SOURCES)

if (CMAKE_HOST_WIN32)
	#
else()
	list(REMOVE_ITEM SOURCES ./VideoWindow.cpp)
endif()

add_executable(DemoStream ${SOURCES})


if (MSVC)
	SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /SAFESEH:NO")
endif()

target_link_libraries(DemoStream
	MediaDecoder
	debug comnd optimized comn
	${LIB_PLATFORM}
	${FFMPEG_LIBRARIES}
	SDL2 
	)

